<?php
$list = '';
if ( $yamlconfig->di_getOptionValue('di_layout') === 2 || $yamlconfig->di_getOptionValue('di_layout') === 3 ) {
	if ( $yamlconfig->di_getOptionValue('di_txtalign') === 1 ) {
		$list = 'listright';
	} else {
		$list = 'listleft';
	}
} else {
	$list = 'listleft';
}
?>
					<ul class="sidebar  <?php echo $list; ?>">
					<?php 	/* Widgetized sidebar, if you have the plugin installed. */
					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
						<li id="archive" class="widget widget_archives"><h3><?php _e('Archiv', ''); ?></h3>
							<ul>
								<?php wp_get_archives('show_post_count=1&type=monthly'); ?>
							</ul>
						</li>
						<?php wp_list_pages('depth=4&title_li=<h3>' . __('Seiten', '') . '</h3>&sort_colunm=menu_order'); ?>
						<?php wp_list_bookmarks('title_before=<h3>&title_after=</h3>'); ?>
					<?php endif ?>
					</ul>
